package com.anycl.design.behavioral.observer.instance;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Reader implements IReader {
    private String name;

    public Reader(String name) {
        this.name = name;
    }

    @Override
    public void update(String bookName) {
        log.info(name + "-收到了图书：" + bookName);
    }
}
